package de.wwu.moneyrec;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.LinearLayout;

public class StartScreen extends Activity{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		Button normalCal = new Button(this);
		normalCal.setText("ein bild");
		Button prevCam = new Button(this);
		prevCam.setText("prev");
		
		LinearLayout linearLayout = new LinearLayout(this);
		linearLayout.addView(normalCal);
		linearLayout.addView(prevCam);
		
		setContentView(linearLayout);
		
		normalCal.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(StartScreen.this, MoneyRec.class);
				startActivity(intent);
			}
		});
		
		prevCam.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(StartScreen.this, CameraManuel.class);
				
				startActivity(intent);
			}
		});
	}
	
}
